|
CAN Gateway code example
v1.2
|
Header file for cangw.cpp. More...
#include <hdj2534.h>Go to the source code of this file.
Namespaces | |
| canGw | |
| Namespace for cangw module. | |
Typedefs | |
| typedef void(* | canGw::RcvCb_t )(const J2534::PASSTHRU_MSG *rxPassThruMsg, unsigned long rxMsgNum) |
| Definition of callback function for receive frames. | |
Enumerations | |
| enum | canGw::ErrCode_e { canGw::CAN_GW_OK, canGw::CAN_GW_ERR } |
| Definition of CAN Gateway's error codes. More... | |
| enum | canGw::Channel_e { canGw::CHANNEL_1, canGw::CHANNEL_2 } |
| Definition of CAN Gateway channels' names. More... | |
| enum | canGw::Baudrate_e { canGw::BAUD_125K, canGw::BAUD_250K, canGw::BAUD_500K, canGw::BAUD_1M } |
| Definition of CAN Gateway's baud rates. More... | |
Functions | |
| ErrCode_e | canGw::init (Baudrate_e baudChan1, Baudrate_e baudChan2, const RcvCb_t cbChan1, const RcvCb_t cbChan2) |
| Function initializes CAN Gateway device. More... | |
| ErrCode_e | canGw::uninit () |
| Function uninitializes CAN Gateway device. More... | |
| ErrCode_e | canGw::send (Channel_e channel, J2534::PASSTHRU_MSG *txPassThruMsg) |
| Function sends PASSTHRU frame via given channel. More... | |
| ErrCode_e | canGw::startPeriodic (Channel_e channel, J2534::PASSTHRU_MSG *txPassThruMsg, unsigned long interval) |
| Function starts CAN Gateway's periodic message. More... | |
1.8.6